-- GENERATED SPELL FOR [Deadwood Warrior] --


function spell0_7153(pUnit, Event) --@Curse of the Deadwood,Heal--
pUnit:FullCastSpellOnTarget(13583,pUnit)
pUnit:RegisterEvent('Sorts_7153', 2000, 1)
end

function spell1_7153(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7153', 548, 1)
end

function Sorts_7153(pUnit, Event)
local choix_sorts_7153 = math.random(0, 1)
if choix_sorts_7153 == 0 then
pUnit:RegisterEvent('spell0_7153', 1, 1)
end
if choix_sorts_7153 == 1 then
pUnit:RegisterEvent('spell1_7153', 1, 1)
end
end

function mob7153_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7153', math.random(1500, 3000), 1)
end

function mob7153_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7153_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7153_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7153, 1, 'mob7153_Action')
RegisterUnitEvent(7153, 2, 'mob7153_Leave')
RegisterUnitEvent(7153, 3, 'mob7153_Kill')
RegisterUnitEvent(7153, 4, 'mob7153_Die')
